﻿@model Abp.Application.Services.Dto.PagedResultOutput<MyCompanyName.AbpZeroTemplate.Daybooks.Dto.DaybookListDto>
@{
    ViewBag.Title = "My";
    ViewBag.CurrentPageName = MyCompanyName.AbpZeroTemplate.Web.Navigation.PageNames.App.Okr.Daybook_My;
}



<div class="portlet">
    <div class="portlet-title">
        <div class="caption">
            <i class="fa fa-bell-o"></i>My
        </div>
        @*<div class="tools">
            <a href="javascript:;" class="collapse">
            </a>
            <a href="#portlet-config" data-toggle="modal" class="config">
            </a>
            <a href="javascript:;" class="reload">
            </a>
            <a href="javascript:;" class="remove">
            </a>
        </div>*@
    </div>
    <div class="portlet-body">
        <div class="table-scrollable">
            <table class="table table-striped table-bordered table-advance table-hover">
                <thead>
                    <tr>
                        @*<th>
                            #
                        </th>*@
                        <th>
                            BookDay | Edit
                        </th>
                        <th>
                            items
                        </th>
                        <th>
                            Remark
                        </th> 
                    </tr>
                </thead>
                <tbody>

                    @foreach (var item in Model.Items)
                    {
                        <tr>
                            @*<td>@item.Id</td>*@
                            <td>@item.BookDay.ToString("yyyy-MM-dd")
                                <br /><br />
                            <a href="/Okr/Daybook/Edit/@item.Id">Edit</a></td>
                            <td>
                                @Html.Action("DayItems", new { id = item.Id })
                            </td>
                            <td>@item.Remark</td>
                            
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    </div>
</div>